input {
display: block;
}

body {
background-color: #f0f0f9;
}

h1 {
	text-align: center;
	font-family:"Verdana";
}
 
#nav {
	width: 100%;
	float: left;
	margin: 0 0 3em 0;
	padding: 0;
	list-style: none;
	background-color: #f2f2f2;
	border-bottom: 1px solid #ccc; 
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
}

#nav ul {
	list-style: none;
	width: 800px
	margin: 0 auto;
	padding: 0;
}

#nav li {
	float: right;
}

#nav li a {
	display: block;
	padding: 8px 15px;
	text-decoration: none;
	font-weight: bold;
	color: #069;
	border-right: 1px solid #ccc;
}

#nav li a:hover {
	color: #c00;
	background-color: #fff;
}

#nav li ul {
	display: none; 
	width: 12em;
	background-color: #a8d0e1;
}

#nav li:hover ul {
	display: block;
	position: absolute;
	margin: 0;
	padding: 0;
}

#nav li:hover li {
	float: none;
}

#nav li:hover li a {
	background-color: #69f;
	border-bottom: 1px solid #fff;
	color: #000;
}

#nav li li a:hover {
	background-color: #8db3ff;
}